* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F8F8F8;
}

header {
    background-color: white;
    padding: 10px 20px;
    text-align: center;
    height: 75px;
    padding: 10px 131px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    line-height: 44px;
}

nav .icon-fanhui {
    font-size: 22px;
    color: grey;
}

nav .publish-article {
    font-size: 25px;
    cursor: pointer;
}

nav .article-norms {
    margin: 20px;
    color: #6c757d;
    text-decoration: none;
}

nav .article-norms:hover {
    color: black;
}

nav .nav-right {
    display: flex;
    align-items: center;
}

nav .nav-right .icon-messages {
    font-size: 19px;
    cursor: pointer;
}

nav .nav-right .notification-text {
    font-size: 17px;
}

nav .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 20px;
}

main {
    padding: 20px;
    width: 70%;
    margin: 5px auto;
    position: relative;
}

.editor-container {
    border: 1px solid #dee2e6;
    padding: 20px;
    background-color: white;
}

.editor-container .editor-toolbar {
    display: flex;
    margin-bottom: 10px;
    /*float: right;*/
}

.editor-container .editor-toolbar .insertImage,
.editor-container .editor-toolbar .insertVideo {
    cursor: pointer;
    margin: 3px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.editor-container .editor-toolbar .insertImage .iconfont,
.editor-container .editor-toolbar .insertVideo .iconfont {
    font-size: 29px;
    color: black;
}

.editor-container .editor-toolbar .insertImage .text,
.editor-container .editor-toolbar .insertVideo .text {
    opacity: 0;
    visibility: hidden;
    width: 70px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    color: white;
    font-size: 13px;
    border-radius: 5px;
    background-color: #666666;
    position: absolute;
    top: 25px;
}

.editor-container .editor-toolbar .insertImage:hover .insertImage-text {
    opacity: 1;
    visibility: visible;
}

.editor-container .editor-toolbar .insertVideo:hover .insertVideo-text {
    opacity: 1;
    visibility: visible;
}

.article-title {
    width: 100%;
    padding: 10px;
    outline: none;
    font-size: 22px;
    border: none;
    height: 60px;
    color: #222;
}
.titleInput{
    position: relative;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #dee2e6;
}
.title-length-info {
    color: #6c757d;
    font-size: 17px;
    margin-bottom: 10px;
    position: absolute;
    right: 14px;
    top: 26px;
}

.article-content {
    width: 100%;
    min-height: 500px;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    margin: 25px 0 7px 0;
    outline: none;
    font-size: 16px;
}
.article-word-count{
    margin-bottom: 10px;
    display: flex;
    justify-content: end;
}
.article-content .placeholder{
    color:grey;
    font-size:22px;
}
.imagePreview {
    width: 310px;
    display: flex;
}
.imagePreview .imagePreview-text{
    font-size:18px;
}
.imagePreview .image-upload-box {
    width: 174px;
    height: 140px;
    border: 1px solid #a09696;
    margin: 0 10px 15px;
    cursor: pointer;
    position: relative;
    padding:0;
    border-radius:5px;
}
.imagePreview .image-upload-box :hover{
    background-color: #F5F5F5;
}
.imagePreview .image-upload-box input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.cover-image{
    width:100%;
    height:100%;
    border-radius: 5px;
    background-size : cover;

}

.imagePreview .image-upload-box .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagePreview .image-upload-box .placeholder .icon-add {
    font-size: 39px;
    color: grey;
}

.imagePreview .preview-link {
    color: #007bff;
    text-decoration: none;
    margin-left: 5px;
}

.imagePreview .tip {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.article-settings {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.article-settings .draft-auto-save {
    color: #6c757d;
    margin-right: 10px;
    cursor: pointer;
}

.article-settings .draft-auto-save:hover {
    color: black;
}

.article-settings .article-word-count {
    color: #6c757d;
    margin-left: 15px;
}

.Essay-classify {
    position: relative;
}

.Essay-classify .Essay-classify-title {
    width: 110px;
    text-align: center;
    height: 35px;
    background-color: #FF5E5E;
    border-radius: 5px;
    color: white;
    line-height: 35px;
    cursor: pointer;
}
.Essay-classify .Essay-classify-title .mouseHover-help{
    width: 216px;
    height: 50px;
    pointer-events: none;
    padding-top:6px;
    opacity: 0;
    visibility: hidden;


}


.Essay-classify .Essay-classify-title:hover .mouseHover-help{
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* 鼠标移入父元素时，恢复响应鼠标事件 */

}

.Essay-classify .mouseHover-help .Essay-classify-contents {
    width: 261px;
    height: 41px;
    color: black;
    background-color: #d7d6d6;
    display: flex;
    border-radius: 5px;
    flex-wrap: wrap;
    justify-content: space-around;
    /*position: absolute;*/
    align-items: center;
    /*left: 0;*/
    /*top: 38px;*/
    /*pointer-events: none;*/
    z-index: 100;
}

.Essay-classify .Essay-classify-contents p {
    margin:5px 8px 5px 8px;
}

.Essay-classify .Essay-classify-contents p:hover {
    color: red;
    cursor: pointer;
}

.Essay-classify .tag-line {
    position: absolute;
    bottom: 0;
    left: 120px;
}

.VIP {
    margin-top: 50px;
    font-size: 17px;
}

.post {
    width: 90px;
    height: 34px;
    text-align: center;
    line-height: 35px;
    background-color: #FF5E5E;
    color: white;
    border-radius: 5px;
    position: absolute;
    bottom: 40px;
    right: 41px;
    cursor: pointer;
}
.post :hover{
    background-color: #FF8585;
  }
.Temporarily-save-to-drafts{
    width: 90px;
    height: 34px;
    text-align: center;
    line-height: 35px;
    color: black;
    border: 1px solid grey;
    border-radius: 3px;
    position: absolute;
    bottom: 40px;
    right: 152px;
    cursor: pointer;
}
.Temporarily-save-to-drafts :hover{
    background-color: #FF8585;
}
#alert{
    display: none;
    width: 230px;
    height: 70px;
    color: red;
    text-align: center;
    position: fixed;
    border-radius: 6px;
    top: 20%;
    left: 50%;
    z-index: 101;
    background-color: white;
    opacity: 1.5;
    line-height: 70px;
    box-shadow: 0 0 9px 1px #E5E0E0;
    transform: translate(-50%);
    font-size: 20px;
}